#ifndef __APP_CHARGING_H_
#define __APP_CHARGING_H_

#define CHGING_CHECKGUN_DELAY    (10000)


enum EN_STA_STATE{
    STA_STATE_OFFLINE=0x00,  //离线
    STA_STATE_ABNORMAL=0x01,  //故障
    STA_STATE_IDLE=0x02,  //空闲
    STA_STATE_CHG=0x03,  //充电
    STA_STATE_MAX
};
    
enum EN_STA_CHGING_SUB_STATE{
    STA_SUB_CHGING_STATE_PREPARA=0x00,  //预备充电
    STA_SUB_CHGING_STATE_CHGING,  //充电中
    STA_SUB_CHGING_STATE_CHGED,  //充电完成
    STA_CHGING_SUB_STATE_MAX
};

extern enum EN_STA_STATE g_enStaState;//充电桩状态

int StopChgChkTimer(void *pParameter);
enum EN_STA_STATE StationStateGet(void);
int StationStateSet(enum EN_STA_STATE state);
enum EN_STA_CHGING_SUB_STATE ChgSubStateGet(void);
void SendStopSignal(void);
void CHGLOOP(void);


#endif

